package com.wicket.okrapp.integration.dto;

import com.wicket.okrapp.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Objects;

import lombok.Data;

/**
 * @desc ReportMgtModelMenusDto
 * @使用场景
 */
@Data
public class ReportMgtModelMenusDto extends BaseDto implements Serializable {

  /**
   * 汇报管理菜单标识
   */
  @ApiModelProperty("汇报管理菜单标识")
  private String reportMgtModelMenusCode;

  /**
   * 汇报管理菜单名称
   */
  @ApiModelProperty("汇报管理菜单名称")
  private String reportMgtModelMenusName;

  /**
   * 自定义字段
   */
  @ApiModelProperty("自定义字段")
  private String customField;

  /**
   * 自定义字段1
   */
  @ApiModelProperty("自定义字段1")
  private String customField1;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    ReportMgtModelMenusDto that = (ReportMgtModelMenusDto) o;
    return (
      reportMgtModelMenusCode == that.reportMgtModelMenusCode &&
      reportMgtModelMenusName == that.reportMgtModelMenusName &&
      customField == that.customField &&
      customField1 == that.customField1
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(
      super.hashCode(),
      reportMgtModelMenusCode,
      reportMgtModelMenusName,
      customField,
      customField1
    );
  }

}
